package com.example.demo;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author krystal
 * @date 2023/3/7 18:44
 */
@Component
@ConfigurationProperties("star")
@Data
public class Star {
    private int id;
    private String name;
    private int age;
}
